#include <windows.h>

int WINAPI WinMain(
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow
) {

    HINSTANCE value = ShellExecuteA(NULL, "open", "javaw", "-Dsun.java2d.noddraw=true -jar dist/Station3D.jar", NULL, nCmdShow);
    /*if ((int)value <= 32) {
        MessageBox(NULL, "Unable to find Java Virtual Machine", "Station3D", MB_ICONERROR);
    }*/
}

// Příkaz pro zkompilování pomocí MinGW:
// gcc Station3DLauncher.c -o Station3D -mwindows

